using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmMasResourceType")]
    public class MasResourceType
    {
        public MasResourceType()
        {
            //this.MasResourceGroups = new HashSet<MasResourceGroup>();
        }
    

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "ResTypeId", ResourceType = typeof(Resources.MasResourceTypeResource))]
        public int ResTypeId { get; set; }

		[DataMember, Display(Name = "Code", ResourceType = typeof(Resources.MasResourceTypeResource))]
        public string Code { get; set; }

		[DataMember, Display(Name = "Name", ResourceType = typeof(Resources.MasResourceTypeResource))]
        public string Name { get; set; }

		[DataMember, Display(Name = "Descr", ResourceType = typeof(Resources.MasResourceTypeResource))]
        public string Descr { get; set; }

		[DataMember, Display(Name = "DepreciationCalculate", ResourceType = typeof(Resources.MasResourceTypeResource))]
        public string DepreciationCalculate { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MasResourceTypeResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MasResourceTypeResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MasResourceTypeResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MasResourceTypeResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MasResourceTypeResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

	    [DataMember, NotMapped] public int AmountOfGroup { get; set; } // ViewModel

        //[DataMember]
        //public virtual ICollection<MasResourceGroup> MasResourceGroups { get; set; }

    }
}